home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12471 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news.luc.edu!user
  2. From: VArase@varase.it.luc.edu (Verne Arase)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borland C's tmpnam()
  5. Date: Sun, 31 Mar 1996 21:18:44 -0600
  6. Organization: LUMC
  7. Message-ID: <AD84A73496681719A2@mcdiala03.it.luc.edu>
  8. References: <AD75E5DC9668E2A52@mcdiala13.it.luc.edu> <Pine.A32.3.91.960322134158.23347A-100000@red.weeg.uiowa.edu> <AD78E5E796681EC58@mcdialb10.it.luc.edu> <827626790snz@genesis.demon.co.uk> <AD7CDFD39668AABD2@mcdiala01.it.luc.edu> <828276946snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: 147.126.240.103
  10.  
  11. In article <828276946snz@genesis.demon.co.uk>,
  12. Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
  13.  
  14.  >>I thought that only DOS/Intel offspring platforms were supported; that's
  15.  >>why I limited my query to that specific compiler; else I would've
  16. included
  17.  >>the target environment.
  18.  >
  19.  >Don't forget that you are posting to comp.lang.c where the bias is for
  20.  >discussing the standard, platform-independent, C language. The place to
  21.  >discuss the specific traits and extensions of Borland C is somewhere
  22.  >like comp.os.msdos.programmer.
  23.  
  24. Don't forget the subject line. I didn't ask a general question re:
  25. tmpnam(); I put it in the context of Borland C. If I'd asked the question
  26. in the context of CodeWarrior, I'd have expected someone with some
  27. Macintosh experience to respond.
  28.  
  29. The newsgroup is called comp.lang.c, not comp.lang.x-platform.c.
  30.  
  31.  >>If you're stating that tmpnam() under Borland C does indeed check to see
  32.  >>that the file name is unique, I'll quash that reluctance and change the
  33.  >>default directory.
  34.  >
  35.  >I don't know what Borland C actually does. It it is a conforming
  36.  >implementation it must ensure that the name it generates is valid and
  37.  >doesn't already exist in the filesystem.
  38.  
  39. Actually, it doesn't.
  40.  
  41. All it does it insure that the file name doesn't exist in the current
  42. location in the file system. Which, I'd imagine, is what just about every
  43. implementation does.
  44.  
  45. It's be a lot more useful if you could specify a target directory, though
  46. the string that makes up that specification would be target environment
  47. dependant.
  48.  
  49. ---
  50. The above are my own opinions, and not those of my employer.
  51.